projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cbae4f
)
waitablequeue: Only use API from GLib 2.34
author
Colin Walters
<walters@verbum.org>
Wed, 3 Apr 2013 04:50:16 +0000
(
00:50
-0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 3 Apr 2013 04:50:16 +0000
(
00:50
-0400)
As intended.
src/libotutil/ot-waitable-queue.c
patch
|
blob
|
history
diff --git
a/src/libotutil/ot-waitable-queue.c
b/src/libotutil/ot-waitable-queue.c
index 874499d36792ee867b95b6ecdd57baf9a916879f..475c9c27a4ca0d26c78fb7ea9e89b9c9f52d06ae 100644
(file)
--- a/
src/libotutil/ot-waitable-queue.c
+++ b/
src/libotutil/ot-waitable-queue.c
@@
-116,5
+116,8
@@
ot_waitable_queue_unref (OtWaitableQueue *queue)
GSource *
ot_waitable_queue_create_source (OtWaitableQueue *queue)
{
- return g_unix_fd_source_new (queue->fd, G_IO_IN);
+ GIOChannel *iochan = g_io_channel_unix_new (queue->fd);
+ GSource *source = g_io_create_watch (iochan, G_IO_IN);
+ g_io_channel_unref (iochan);
+ return source;
}